package ca.etsmtl.log730.projet.controller.nmessages;

import java.io.Serializable;
import java.util.UUID;

public class Reply implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3434058491144755166L;

	
	private UUID originId;
	private ReplyType reply;
	public Reply(UUID oid, ReplyType rt) {
		this.setOriginId(oid);
		setReply(rt);
	}

	public UUID getOriginId() {
		return originId;
	}

	public void setOriginId(UUID originId) {
		this.originId = originId;
	}

	public ReplyType getReply() {
		return reply;
	}

	public void setReply(ReplyType reply) {
		this.reply = reply;
	}
	
	public static class List extends Reply {

		/**
		 * 
		 */
		private static final long serialVersionUID = -2640833953252907021L;
		private Object object;
		public List(UUID oid, ReplyType rt, Object o) {
			super(oid, rt);
			setObject(o);
		}
		public Object getObject() {
			return object;
		}
		public void setObject(Object object) {
			this.object = object;
		}
		
	}
}
